#ifndef _FORMAT
#define _FORMAT

#define EE_MODEL_ID		200
#define EE_MODEL_CHECK	101
#define EE_WORLD_ID		201
#define EE_WORLD_CHECK	201

/**************************
 * D3DMesh Specific
 **************************/
struct modelHeader
{
	int version; 
	int meshCount; 
	int frameCount; 
}; 

struct physicsHeader
{
	int checkBytes; 
	int vertexCount; 
	float friction; 
}; 

struct meshHeader
{
	int checkBytes; 
	int vertexCount; 
	char decalFilename[64]; 
	char normalFilename[64]; 
	char auxFilename[64]; 
	char shaderFilename[64]; 
}; 

/**************************
 * Map Specific
 **************************/
struct MapHeader
{
	int version; 
	bool hasLightMap; 
}; 
struct MapGlobalInfo
{
	char worldName [64]; 
	char worldDesc [256]; 
	int MapFogInfoSize; 
	int worldSunSize; 
	int worldWeatherSize; 
	int worldEntitySize; 
	int worldMeshSize; 
}; 

struct MapFogInfo
{
	float color[3]; 
	float density; 
}; 

struct MapEnvInfo
{
	float sunHeight; 
	float sunAngle; 

	char backgroundFilename[64]; 
	char glareFilenames[4][64]; 
}; 

struct worldWeather
{
	float desity; 
	float weight; 

	char particleFilename[64]; 
}; 
struct worldEntity
{
	float transform[4][4]; 
	char name[64]; 
}; 
struct worldLightEntity
{
	float position[3]; 
	float color[3]; 
	float range; 
}; 



#endif